package com.fas.system.domain;

import com.fas.system.domain.vo.LongJsonDeserializer;
import com.fas.system.domain.vo.LongJsonSerializer;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

/**
 * 巡检记录对象 fas_inspection_record
 */
@ApiModel(value = "巡检记录对象")
@Data
public class FasInspectionRecord implements Serializable {

    @ApiModelProperty(value = "主键")
    private Integer id	;//主键

    @ApiModelProperty(value = "设施id")
    private Integer facilityId	;//设施id

    @ApiModelProperty(value = "巡检员")
    private Integer inspector	;//巡检员

    @ApiModelProperty(value = "巡检前结果")
    private String inspectionResultOld	;//巡检前结果

    @ApiModelProperty(value = "巡检后结果")
    private String inspectionResultNew	;//巡检后结果

    @ApiModelProperty(value = "巡检时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date inspectionDate	;//巡检时间

    @ApiModelProperty(value = "问题上报的图片")
    private String inspectionImageList	;//问题上报的图片

    @ApiModelProperty(value = "处理方式（0：现场处理，1：上报工单）")
    private Integer treatmentMethod	;//处理方式（0：现场处理，1：上报工单）

    @ApiModelProperty(value = "备注")
    private String remark	;//备注

    @ApiModelProperty(value = "当前巡检任务id")
    @JsonSerialize(using = LongJsonSerializer.class)
    @JsonDeserialize(using = LongJsonDeserializer.class)
    private Long fasInspectionTaskId;

    @ApiModelProperty(value = "工单id")
    private Integer wordOrderId	;//工单id
// 非表字段
    private List<FasInspectionRecordData> recordDataList;

    private String facilityTypeName;//设施类型名字
    private String buildingName;//建筑名
    private Integer floor;//设施所在楼层
    private String position;//设施所在位置

}
